package com.ruoyi.car.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用车记录对象 car_vehicle_record
 * 
 * @author ruoyi
 * @date 2022-12-03
 */
public class CarVehicleRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long vehicleRecordId;

    /** 车牌 */
    @Excel(name = "车牌")
    private String carNumber;

    /** 用车人 */
    @Excel(name = "用车人")
    private Long vehicleUser;

    /** 用车人 */
    @Excel(name = "用车人")
    @TableField(exist = false)
    private String vehicleName;

    /** 司机 */
    @Excel(name = "司机")
    private Long vehicleDriver;

    /** 用车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用车时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date vehicleStartTime;

    /** 还车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "还车时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date vehicleEndTime;

    /** 用车描述 */
    @Excel(name = "用车描述")
    private String vehicleMark;

    /** 还车车库id */
    @Excel(name = "还车车库id")
    private Long carGarageId;
    /** 车库名 */
    @Excel(name = "车库名")
    @TableField(exist = false)
    private String garageName;

    /** 用车审核状态 */
    @Excel(name = "用车审核状态")
    private String vehicleAuditStatus;

    public void setVehicleRecordId(Long vehicleRecordId) 
    {
        this.vehicleRecordId = vehicleRecordId;
    }

    public Long getVehicleRecordId() 
    {
        return vehicleRecordId;
    }
    public void setCarNumber(String carNumber) 
    {
        this.carNumber = carNumber;
    }

    public String getCarNumber() 
    {
        return carNumber;
    }
    public void setVehicleUser(Long vehicleUser) 
    {
        this.vehicleUser = vehicleUser;
    }

    public Long getVehicleUser() 
    {
        return vehicleUser;
    }
    public void setVehicleDriver(Long vehicleDriver) 
    {
        this.vehicleDriver = vehicleDriver;
    }

    public Long getVehicleDriver() 
    {
        return vehicleDriver;
    }
    public void setVehicleStartTime(Date vehicleStartTime) 
    {
        this.vehicleStartTime = vehicleStartTime;
    }

    public Date getVehicleStartTime() 
    {
        return vehicleStartTime;
    }
    public void setVehicleEndTime(Date vehicleEndTime) 
    {
        this.vehicleEndTime = vehicleEndTime;
    }

    public Date getVehicleEndTime() 
    {
        return vehicleEndTime;
    }
    public void setVehicleMark(String vehicleMark) 
    {
        this.vehicleMark = vehicleMark;
    }

    public String getVehicleMark() 
    {
        return vehicleMark;
    }
    public void setCarGarageId(Long carGarageId) 
    {
        this.carGarageId = carGarageId;
    }

    public Long getCarGarageId() 
    {
        return carGarageId;
    }
    public void setVehicleAuditStatus(String vehicleAuditStatus) 
    {
        this.vehicleAuditStatus = vehicleAuditStatus;
    }

    public String getVehicleAuditStatus() 
    {
        return vehicleAuditStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("vehicleRecordId", getVehicleRecordId())
            .append("carNumber", getCarNumber())
            .append("vehicleUser", getVehicleUser())
            .append("vehicleDriver", getVehicleDriver())
            .append("vehicleStartTime", getVehicleStartTime())
            .append("vehicleEndTime", getVehicleEndTime())
            .append("vehicleMark", getVehicleMark())
            .append("carGarageId", getCarGarageId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("vehicleAuditStatus", getVehicleAuditStatus())
            .toString();
    }

    public String getVehicleName() {
        return vehicleName;
    }

    public void setVehicleName(String vehicleName) {
        this.vehicleName = vehicleName;
    }

    public String getGarageName() {
        return garageName;
    }

    public void setGarageName(String garageName) {
        this.garageName = garageName;
    }
}
